import { domainService } from '~/config/server'
import { NetService } from '~/utils/net.service'
import { Inject, Debounce } from "~/core/decorator";
import { Service } from '~/core/service'

export class CustomFollowService extends Service {

  @Inject(NetService)
  private netService: NetService

  /**
   * 自定义出入催管理-导入入催模板
   * @param params
   */
  public importFollowInTemplate(data) {
    return this.netService.send({
      server: domainService.CustomFollowController.importFollowInTemplate,
      data
    })
  }
  /**
   * 自定义出入催管理-导入出催模板
   * @param params
   */
  public importFollowOutTemplate(data) {
    return this.netService.send({
      server: domainService.CustomFollowController.importFollowOutTemplate,
      data
    })
  }
  /**
   * 自定义出入催查询列表
   * @param params
   */
  public findAllByPage(data,page?) {
    return this.netService.send({
      server: domainService.CustomFollowController.findAllByPage,
      data,
      page,
    })
  }
  /**
   * 自定义出入催列表删除
   * @param params
   */
  public deleteById(data,page?) {
    return this.netService.send({
      server: domainService.CustomFollowController.deleteById,
      data,
      page,
    })
  }
  /**
   * 自定义出入催管理-下载入催模板
   * @param params
   */
  public downLoadFollowInTemplate() {
    return this.netService.send({
      server: domainService.CustomFollowController.downLoadFollowInTemplate,
    })
  }
  /**
   * 自定义出入催管理-下载出催模板
   * @param params
   */
  public downLoadFollowOutTemplate() {
    return this.netService.send({
      server: domainService.CustomFollowController.downLoadFollowOutTemplate,
    })
  }
  /**
   * 自定义出入催管理-搜索入催数据
   * @param params
   */
  public searchFollowIn(data?) {
    return this.netService.send({
      server: domainService.CustomFollowController.searchFollowIn,
      data
    })
  }
  /**
   * 自定义出入催管理-删除入催数据
   * @param params
   */
  public deleteFollowIn(data?) {
    return this.netService.send({
      server: domainService.CustomFollowController.deleteFollowIn,
      data
    })
  }
  /**
   * 自定义出入催管理-重置入催数据
   * @param params
   */
  public refreshFollowIn(data?) {
    return this.netService.send({
      server: domainService.CustomFollowController.refreshFollowIn,
      data
    })
  }
  /**
   * 自定义出入催管理-新增入催数据
   * @param params
   */
  public followIn(data?) {
    return this.netService.send({
      server: domainService.CustomFollowController.followIn,
      data
    })
  }
  /**
   * 自定义出入催管理-新增出催数据
   * @param params
   */
  public followOut(data?) {
    return this.netService.send({
      server: domainService.CustomFollowController.followOut,
      data
    })
  }
}

